topology_optimization.py"""
    topology_optimization.py - Minimize the compliance
"""

import BLES6

maxIteration = 0,
itt = 0
convergence =0

maxIteration = BLES6.initialise(1,"cant.txt")

while itt < maxIteration:
    BLES6.analysis(itt)
    
    convergence = BLES6.sensitivity()
    
    if convergence == 1:
        break
    
    BLES6.optimize()
    
    itt+= 1
    
BLES6.output()

#BLES6.numMat = 3

print BLES6.numMat